Skip to content

feat(translator): support setting previous priorities retry predicate#6204

Merged
arkodg merged 2 commits intoenvoyproxy:mainfrom
Inode1:feat-retry-remote-locality
Jun 11, 2025
Merged

feat(translator): support setting previous priorities retry predicate#6204
arkodg merged 2 commits intoenvoyproxy:mainfrom
Inode1:feat-retry-remote-locality

Conversation

@Inode1
Copy link
Contributor

@Inode1 Inode1 commented May 28, 2025

What type of PR is this?

What this PR does / why we need it:

Makes it possible to configure the previous priorities retry for Route.

Which issue(s) this PR fixes:

Fixes #6181

Release Notes: Yes/No

@Inode1 Inode1 force-pushed the feat-retry-remote-locality branch from 3bdbbac to c2b5bdf Compare May 28, 2025 09:01
@codecov
Copy link

codecov bot commented May 28, 2025

Codecov Report

Attention: Patch coverage is 80.00000% with 3 lines in your changes missing coverage. Please review.

Project coverage is 70.48%. Comparing base (32d61c4) to head (0a51999).
Report is 2 commits behind head on main.

Files with missing lines Patch % Lines
internal/xds/translator/route.go 76.92% 2 Missing and 1 partial ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main    #6204   +/-   ##
=======================================
  Coverage   70.48%   70.48%           
=======================================
  Files         220      220           
  Lines       36676    36691   +15     
=======================================
+ Hits        25852    25863   +11     
- Misses       9292     9294    +2     
- Partials     1532     1534    +2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@Inode1 Inode1 force-pushed the feat-retry-remote-locality branch from c2b5bdf to a7569fd Compare May 28, 2025 19:46
@Inode1 Inode1 marked this pull request as ready for review May 28, 2025 19:47
@Inode1 Inode1 requested a review from a team as a code owner May 28, 2025 19:47
@Inode1
Copy link
Contributor Author

Inode1 commented May 29, 2025

/retest

@Inode1 Inode1 force-pushed the feat-retry-remote-locality branch 3 times, most recently from 224f66f to 6e34d40 Compare June 2, 2025 20:18
@Inode1 Inode1 requested review from arkodg and cmaddalozzo June 2, 2025 20:19
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
// If not specified or set to 0, all requests are sent to the highest priority.
// If not specified or set to 0, all requests are sent to the highest priority that is healthy.

@arkodg
Copy link
Contributor

arkodg commented Jun 2, 2025

thanks @Inode1 the PR looks good, added a minor comment
can you also add a test in https://github.com/envoyproxy/gateway/tree/main/internal/gatewayapi/testdata ?

@Inode1 Inode1 force-pushed the feat-retry-remote-locality branch 2 times, most recently from d20ec44 to c208aeb Compare June 3, 2025 06:39
Signed-off-by: i.makarychev <i.makarychev@tbank.ru>
@Inode1 Inode1 force-pushed the feat-retry-remote-locality branch from c208aeb to 77d3a2f Compare June 3, 2025 06:45
@Inode1
Copy link
Contributor Author

Inode1 commented Jun 3, 2025

thanks @Inode1 the PR looks good, added a minor comment can you also add a test in https://github.com/envoyproxy/gateway/tree/main/internal/gatewayapi/testdata ?

Done

@Inode1 Inode1 requested a review from arkodg June 3, 2025 06:47
@Inode1
Copy link
Contributor Author

Inode1 commented Jun 3, 2025

/retest

arkodg
arkodg previously approved these changes Jun 4, 2025
Copy link
Contributor

@arkodg arkodg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM thanks

@arkodg arkodg requested review from a team and removed request for cmaddalozzo June 4, 2025 16:26
Signed-off-by: Arko Dasgupta <arkodg@users.noreply.github.com>
@arkodg arkodg merged commit d762ea1 into envoyproxy:main Jun 11, 2025
28 of 30 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support host and priority predicates in Retry config

4 participants